<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" media="screen" href="../../css/bootstrap.min.css">
</head>
<body>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
	<form class="form-horizontal" onsubmit="return false" id="form">
		<fieldset>
			<div class='form-group'>
				<label class='col-md-2 control-label'>userid</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='userid' type='text' name='userid' id='userid' data-bv-notempty='true' data-bv-notempty-message='userid 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>number</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='number' type='text' name='number' id='number' data-bv-notempty='true' data-bv-notempty-message='number 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>serviceId</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='serviceId' type='text' name='serviceId' id='serviceId' data-bv-notempty='true' data-bv-notempty-message='serviceId 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>name</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='name' type='text' name='name' id='name' data-bv-notempty='true' data-bv-notempty-message='name 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>serviceName</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='serviceName' type='text' name='serviceName' id='serviceName' data-bv-notempty='true' data-bv-notempty-message='serviceName 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>file</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='file' type='text' name='file' id='file' data-bv-notempty='true' data-bv-notempty-message='file 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>imageUrl</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='imageUrl' type='text' name='imageUrl' id='imageUrl' data-bv-notempty='true' data-bv-notempty-message='imageUrl 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>content</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='content' type='text' name='content' id='content' data-bv-notempty='true' data-bv-notempty-message='content 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>email</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='email' type='text' name='email' id='email' data-bv-notempty='true' data-bv-notempty-message='email 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>money</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='money' type='text' name='money' id='money' data-bv-notempty='true' data-bv-notempty-message='money 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>serviceLawyerId</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='serviceLawyerId' type='text' name='serviceLawyerId' id='serviceLawyerId' data-bv-notempty='true' data-bv-notempty-message='serviceLawyerId 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>payId</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='payId' type='text' name='payId' id='payId' data-bv-notempty='true' data-bv-notempty-message='payId 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>payNumber</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='payNumber' type='text' name='payNumber' id='payNumber' data-bv-notempty='true' data-bv-notempty-message='payNumber 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>payMerchantNumber</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='payMerchantNumber' type='text' name='payMerchantNumber' id='payMerchantNumber' data-bv-notempty='true' data-bv-notempty-message='payMerchantNumber 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>payState</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='payState' type='text' name='payState' id='payState' data-bv-notempty='true' data-bv-notempty-message='payState 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>state</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='state' type='text' name='state' id='state' data-bv-notempty='true' data-bv-notempty-message='state 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>type</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='type' type='text' name='type' id='type' data-bv-notempty='true' data-bv-notempty-message='type 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>typeName</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='typeName' type='text' name='typeName' id='typeName' data-bv-notempty='true' data-bv-notempty-message='typeName 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>deleteState</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='deleteState' type='text' name='deleteState' id='deleteState' data-bv-notempty='true' data-bv-notempty-message='deleteState 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>deleteTime</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='deleteTime' type='text' name='deleteTime' id='deleteTime' data-bv-notempty='true' data-bv-notempty-message='deleteTime 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>paymentTime</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='paymentTime' type='text' name='paymentTime' id='paymentTime' data-bv-notempty='true' data-bv-notempty-message='paymentTime 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>confirmTime</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='confirmTime' type='text' name='confirmTime' id='confirmTime' data-bv-notempty='true' data-bv-notempty-message='confirmTime 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>RefuseTime</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='RefuseTime' type='text' name='RefuseTime' id='RefuseTime' data-bv-notempty='true' data-bv-notempty-message='RefuseTime 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>courierCompanyId</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='courierCompanyId' type='text' name='courierCompanyId' id='courierCompanyId' data-bv-notempty='true' data-bv-notempty-message='courierCompanyId 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>courierNumber</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='courierNumber' type='text' name='courierNumber' id='courierNumber' data-bv-notempty='true' data-bv-notempty-message='courierNumber 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>Sender</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='Sender' type='text' name='Sender' id='Sender' data-bv-notempty='true' data-bv-notempty-message='Sender 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>originatingPlace</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='originatingPlace' type='text' name='originatingPlace' id='originatingPlace' data-bv-notempty='true' data-bv-notempty-message='originatingPlace 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>SenderPhone</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='SenderPhone' type='text' name='SenderPhone' id='SenderPhone' data-bv-notempty='true' data-bv-notempty-message='SenderPhone 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>addRessee</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='addRessee' type='text' name='addRessee' id='addRessee' data-bv-notempty='true' data-bv-notempty-message='addRessee 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>recipientPhoneNumber</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='recipientPhoneNumber' type='text' name='recipientPhoneNumber' id='recipientPhoneNumber' data-bv-notempty='true' data-bv-notempty-message='recipientPhoneNumber 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>address</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='address' type='text' name='address' id='address' data-bv-notempty='true' data-bv-notempty-message='address 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>laywerConten</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='laywerConten' type='text' name='laywerConten' id='laywerConten' data-bv-notempty='true' data-bv-notempty-message='laywerConten 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>lawyerimage</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='lawyerimage' type='text' name='lawyerimage' id='lawyerimage' data-bv-notempty='true' data-bv-notempty-message='lawyerimage 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>lawyerfile</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='lawyerfile' type='text' name='lawyerfile' id='lawyerfile' data-bv-notempty='true' data-bv-notempty-message='lawyerfile 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>lawyerphone</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='lawyerphone' type='text' name='lawyerphone' id='lawyerphone' data-bv-notempty='true' data-bv-notempty-message='lawyerphone 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>commentState</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='commentState' type='text' name='commentState' id='commentState' data-bv-notempty='true' data-bv-notempty-message='commentState 不能为空'>
				</div>
			</div>


			<div class="form-actions">
				<div class="row" align="center">
					<div class="col-md-12">
					    <button class="btn btn-primary" onclick="location.href='mfflContractList.html'">返回</button>
						<button class="btn btn-primary" type="submit" onclick="add()">
							<i class="fa fa-save"></i> 保存
						</button>
					</div>
				</div>
			</div>

		</fieldset>
	</form>
</div>
	<script type="text/javascript" src="../../js/libs/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="../../js/jq.js"></script>
	<script type="text/javascript" src="../../js/plugin/bootstrapvalidator/bootstrapValidator.min.js"></script>
	<script type="text/javascript" src="../../js/common.js"></script>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript">
		layui.use(['layer','laydate'], function(){
		    var layer = layui.layer;
		});
		
		function add() {
			$('#form').bootstrapValidator();
			var bootstrapValidator = $("#form").data('bootstrapValidator');
			bootstrapValidator.validate();
		    if(!bootstrapValidator.isValid()){
			   return;
		    }
		    
		    var formdata = $("#form").serializeObject();

			$.ajax({
				type : 'post',
				url : '/mfflContracts',
				contentType: "application/json; charset=utf-8",  
				data : JSON.stringify(formdata),
				success : function(data) {
					layer.msg("添加成功", {shift: -1, time: 1000}, function(){
                        location.href = "mfflContractList.html";
                    });
				}
			});
		}
		
	</script>
</body>
</html>
